#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char const *argv[])
{
    int file_fd;
    int data[2]={0,1};
    file_fd = open("/dev/LED_DEV",O_RDWR); //open the device
    while (1)
    {
        /* code */
        write(file_fd,&data[0],1);
        sleep(1);
        write(file_fd,&data[1],1);
        sleep(1);
    }
    close(file_fd);
    return 0;
}
